<?php

namespace core\controller;

use core\traits\Response as TraitsResponse;
use core\traits\HomeView as TraitsHomeView;
use Exception;

class HomeBase
{
    use TraitsResponse;
    use TraitsHomeView;

    public function __construct()
    {
        $nowsiteinfo = request()->nowsiteinfo;
        if ($nowsiteinfo['status'] != 1) {
            throw new Exception('站点已关闭');
        }
    }
}
